<?php

$conf = new iConfig;


$folder_level = ""; $i = 0;
while (!file_exists($folder_level."pref.php")) {
	$folder_level .= "../"; $i++;
	if ($i == 7) { die("Config file not found"); }
}

$conf->root = $folder_level;
$conf->system_root = $conf->root."system/";
$conf->controlls_root = $conf->system_root."controlls/";
$conf->themes_root = $conf->root."themes/";
$conf->images_root = $conf->root."images/";
$conf->user_ip = $_SERVER['REMOTE_ADDR'];


define("ROOT", $conf->root);
define("USER_IP", $conf->user_ip);
define("IMAGES", "../../../../images/");

?>